/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.util.Date;
import javax.persistence.*;
import play.db.jpa.Model;

/**
 *
 * @author Dsi
 */
@Entity
public class Trip extends Model {
    public User driver;
    public City startLocation;
    public City endLocation;
    public Date startDate;
    public Date arrivalDate;
    public Integer seats;
    public Float price;
    public String observations;

    public Trip() {
    }

    public Trip(User driver, City startLocation, City endLocation, Date startDate, Date arrivalDate, Integer seats, Float price, String observations) {
        this.driver = driver;
        this.startLocation = startLocation;
        this.endLocation = endLocation;
        this.startDate = startDate;
        this.arrivalDate = arrivalDate;
        this.seats = seats;
        this.price = price;
        this.observations = observations;
    }

}
